package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zisheng on 2018/7/6.
 */

public class MessageAccountListBean implements Parcelable {
    /**
     * accountId : 08b67dccaad4414c836c95b9e9d9cb76
     * avatar :
     * clientType : 2
     * createDatetime : 1529896805415
     * imId : 08b67dccaad4414c836c95b9e9d9cb76
     * lastMessageContent : aGhzaAo=
     * lastMessageDecryptContent : hhsh
     * lastMessageType : 1
     * messageDatetime : 1529894712809
     * name : 丛丛喵喵女士
     * sid : 5fb90d0009d34ee7b3a79b8afd30217e
     * updateDatetime : 1529896805415
     * mobile : 18809404405
     */

    private String accountId;
    private String avatar;
    private int clientType;
    private long createDatetime;
    private String imId;
    private String lastMessageContent;
    private String lastMessageDecryptContent;
    private int lastMessageType;
    private long messageDatetime;
    private String name;
    private String sid;
    private long updateDatetime;
    private String mobile;
    private int unRead;

    public int getUnRead() {
        return unRead;
    }

    public void setUnRead(int unRead) {
        this.unRead = unRead;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getClientType() {
        return clientType;
    }

    public void setClientType(int clientType) {
        this.clientType = clientType;
    }

    public long getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(long createDatetime) {
        this.createDatetime = createDatetime;
    }

    public String getImId() {
        return imId;
    }

    public void setImId(String imId) {
        this.imId = imId;
    }

    public String getLastMessageContent() {
        return lastMessageContent;
    }

    public void setLastMessageContent(String lastMessageContent) {
        this.lastMessageContent = lastMessageContent;
    }

    public String getLastMessageDecryptContent() {
        return lastMessageDecryptContent;
    }

    public void setLastMessageDecryptContent(String lastMessageDecryptContent) {
        this.lastMessageDecryptContent = lastMessageDecryptContent;
    }

    public int getLastMessageType() {
        return lastMessageType;
    }

    public void setLastMessageType(int lastMessageType) {
        this.lastMessageType = lastMessageType;
    }

    public long getMessageDatetime() {
        return messageDatetime;
    }

    public void setMessageDatetime(long messageDatetime) {
        this.messageDatetime = messageDatetime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public long getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(long updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.accountId);
        dest.writeString(this.avatar);
        dest.writeInt(this.clientType);
        dest.writeLong(this.createDatetime);
        dest.writeString(this.imId);
        dest.writeString(this.lastMessageContent);
        dest.writeString(this.lastMessageDecryptContent);
        dest.writeInt(this.lastMessageType);
        dest.writeLong(this.messageDatetime);
        dest.writeString(this.name);
        dest.writeString(this.sid);
        dest.writeLong(this.updateDatetime);
        dest.writeString(this.mobile);
        dest.writeInt(this.unRead);
    }

    public MessageAccountListBean() {
    }

    protected MessageAccountListBean(Parcel in) {
        this.accountId = in.readString();
        this.avatar = in.readString();
        this.clientType = in.readInt();
        this.createDatetime = in.readLong();
        this.imId = in.readString();
        this.lastMessageContent = in.readString();
        this.lastMessageDecryptContent = in.readString();
        this.lastMessageType = in.readInt();
        this.messageDatetime = in.readLong();
        this.name = in.readString();
        this.sid = in.readString();
        this.updateDatetime = in.readLong();
        this.mobile = in.readString();
        this.unRead = in.readInt();
    }

    public static final Creator<MessageAccountListBean> CREATOR = new Creator<MessageAccountListBean>() {
        @Override
        public MessageAccountListBean createFromParcel(Parcel source) {
            return new MessageAccountListBean(source);
        }

        @Override
        public MessageAccountListBean[] newArray(int size) {
            return new MessageAccountListBean[size];
        }
    };
}